package com.quanyan.travel.api.req;

import com.quanyan.BaseRequest;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by xiao.lai on 16/5/26.
 */
public class ReqOrderConfirmMsg extends BaseRequest {
    private static final long serialVersionUID = 6320048665496758367L;

    @NotNull
    private String orderNo;

    @NotNull
    private String orderToken;

    @NotNull
    @Max(value = 4, message = "最大值必须是4")
    @Min(value= 1 ,message= "最小值必须是1" )
    private Integer payId;

    @NotNull
    private boolean useAccumulate;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderToken() {
        return orderToken;
    }

    public void setOrderToken(String orderToken) {
        this.orderToken = orderToken;
    }

    public Integer getPayId() {
        return payId;
    }

    public void setPayId(Integer payId) {
        this.payId = payId;
    }

    public boolean isUseAccumulate() {
        return useAccumulate;
    }

    public void setUseAccumulate(boolean useAccumulate) {
        this.useAccumulate = useAccumulate;
    }
}
